{{#if global_curStatus.isMobile}}
<div id="userLoginContainer" class="mainContent" style="position:absolute;">
  <div class="wrapperInner">
    <div class="col-md-4 col-sm-6 col-xs-12 col-md-offset-4 col-sm-offset-3 top80 nopadding-horizontal">
      <div class="col-sm-12 col-xs-12 center nopadding-horizontal">
        <div class="logo col-sm-12 col-xs-12 nopadding-horizontal">
          <img src="assets/images/logo/logo.png" width="200" alt=""/>
        </div>
      </div>
      <div class="col-sm-10 col-sm-offset-1 col-xs-12 top10">
        <form class="form-horizontal reduce-spacing" role="form">
          {{log 'mailLogin' mailLogin 'phoneLogin' phoneLogin}}
          {{#if mailLogin}}
          <div class="top30 text height45 border-radius input-border-color">
            <i class="el-lock input-icon"></i>
            {{input type="email" class="form-control padding0 normal-input" value=emailAddress focus-in="changeInfo"  placeholder="邮箱" enter='loginAction'}}
          </div>
          {{/if}}
          {{#if phoneLogin}}
          <div class="top30 text height45 border-radius input-border-color">
            <i class="el-lock input-icon"></i>
            {{#if global_curStatus.isAndroid}}
            {{input type="tel" class="form-control padding0 normal-input" value=mobileNum maxlength="11" focus-in="changeInfo"  placeholder="手机号" enter='loginAction'}}
            {{else}}
            {{input type="text" class="form-control padding0 normal-input" value=mobileNum maxlength="11" focus-in="changeInfo"  placeholder="手机号" enter='loginAction'}}
            {{/if}}
          </div>
          {{/if}}
          <div class="top40 text height45 border-radius input-border-color padding-top4">
            <i class="fa-key input-icon"></i>
            {{input type="password" class="form-control padding0 normal-input" value=password focus-in="changeInfo"  placeholder="密码" enter='loginAction'}}
          </div>
          {{#if success}}
          <div class="text-color-success left4 top15">{{responseInfo}}</div>
          {{else}}
          <div class="text-color-danger left4 top15">{{responseInfo}}</div>
          {{/if}}
          <div class="top4">
            <span class="pull-right right10 left10 text-muted">|</span>
          </div>
          <div class="top60">
            {{#if mailLogin}}
            <input type="button" class="btn send-bgcolor border-radius btn-block height45 font-em15" {{action "loginAction"}} disabled={{deterDisabled}} value="企业登录">
            {{/if}}
            {{#if phoneLogin}}
            <input type="button" class="btn send-bgcolor border-radius btn-block height45 font-em15" {{action "loginAction"}} disabled={{deterSDisabled}} value="用户登录">
            {{/if}}
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
{{ui/container/infinite-scroll moniteData="userLogin" didUpdateAction="didUpdate" didInsertElementAction="didInsertElement"}}
{{else}}
<div class="container">
  <div class="row">
    <div class="col-md-4 col-md-offset-4 login">
      <div id="logo">
        <img src="assets/images/logo/logo.png" width="200" alt=""/>
      </div>
      <!-- <div class="col-sm-12 col-xs-12 top30">
      <a href="javascript:void(0)" class="right4 {{if mailLogin 'text-muted'}} no-decoration" {{action 'loginType' 'phone'}}>客服登录</a>
      <span class="right4 text-muted">|</span>
      <a href="javascript:void(0)" class="{{if phoneLogin 'text-muted'}} no-decoration" {{action 'loginType' 'mail'}}>企业登录</a>
    </div> -->
  </div>

  <div class="col-md-4 col-md-offset-4">
    <div class="login-box-plain">
      <h2 class="bigintro">天年宝后台管理系统</h2>
      <div class="divide-40"></div>
      <form role="form">
        {{log 'mailLogin' mailLogin 'phoneLogin' phoneLogin}}
        {{#if mailLogin}}
        <div class="form-group">
          <i class="fa fa-envelope"></i>
          {{input type="email" class="form-control" value=emailAddress focus-in="changeInfo"  placeholder="邮箱" enter='loginAction'}}
        </div>
        {{/if}}
        {{#if phoneLogin}}
        <div class="form-group">
          <i class="fa fa-mobile user-mobile"></i>
          {{input type="tel" class="form-control" value=mobileNum maxlength="11" focus-in="changeInfo"  placeholder="手机号" enter='loginAction'}}
        </div>
        {{/if}}
        <div class="form-group pt10">
          <i class="fa fa-lock"></i>
          {{input type="password" class="form-control" value=password focus-in="changeInfo"  placeholder="密码" enter='loginAction'}}
        </div>
        {{#if success}}
        <div class="text-color-success left4 top15">{{responseInfo}}</div>
        {{else}}
        <div class="text-color-danger left4 top15">{{responseInfo}}</div>
        {{/if}}
        <div class="form-actions mt20">
          <label class="checkbox"><div class="checker user-checker"><span><input type="checkbox" class="uniform" value=""></span></div> 记住用户名</label>
          {{#if mailLogin}}
          <input type="button" class="btn btn-danger" {{action "loginAction"}} disabled={{deterDisabled}} value="企业登录">
          {{/if}}
          {{#if phoneLogin}}
          <input type="button" class="btn btn-danger" {{action "loginAction"}} disabled={{deterSDisabled}} value="登录">
          {{/if}}
        </div>
      </form>

    </div>
  </div>
  <footer class="col-sm-12 col-xs-12 center">
    <span> ICP备xxxxx</span>
    <br>
    <img src="assets/images/备案图标.png" width="15" alt=""/><span> 京公网安备xxxxxxx号</span>
  </footer>
</div>
</div>
{{/if}}
